﻿#include "form_info.h"
#include "ui_form_info.h"
#include "page_info_1.h"
#include "page_info_2.h"
#include "page_info_3.h"

#include <QMessageBox>


#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif



FormInfo::FormInfo(QWidget* parent)
	: QWidget(parent)
	, ui(new Ui::FormInfo)
{
	ui->setupUi(this);
    
    PageInfo_1* info_1 = new PageInfo_1;
	ui->stackedWidget_center->addWidget(info_1);

    PageInfo_2* info_2 = new PageInfo_2;
	ui->stackedWidget_center->addWidget(info_2);

    PageInfo_3* info_3 = new PageInfo_3;
	ui->stackedWidget_center->addWidget(info_3);

	ui->stackedWidget_center->setCurrentIndex(1);

	info_1->show();
}

FormInfo::~FormInfo()
{
	delete ui;
}

void FormInfo::on_pushButton_1_clicked()
{
	//	QMessageBox::information(this, "", "工况 1");

	ui->stackedWidget_center->setCurrentIndex(1);
}


void FormInfo::on_pushButton_2_clicked()
{
	//QMessageBox::information(this, "", "工况 2");

	ui->stackedWidget_center->setCurrentIndex(2);
}


void FormInfo::on_pushButton_3_clicked()
{
	//QMessageBox::information(this, "", "工况 3");

	ui->stackedWidget_center->setCurrentIndex(3);
}

